import request from '@/utils/request'

// 查询销售出库单列表
export function listSalesOutbound(query) {
  return request({
    url: '/sales/outbound/findOutbound',
    method: 'post',
    data: query
  })
}

// 删除销售出库单
export function deleteSalesOutbound(salesId) {
  return request({
    url: '/sales/outbound/' + salesId,
    method: 'delete'
  })
}

// 提交销售出库单
export function submitSalesOutbound(salesId) {
  return request({
    url: '/sales/outbound/submit/' + salesId,
    method: 'put'
  })
}

// 出库操作
export function warehouseSalesOutbound(salesId) {
  return request({
    url: '/sales/outbound/warehouse/' + salesId,
    method: 'put'
  })
} 